package com.joekai.view_demo;

import android.app.Application;

/**
 * @author joekai
 */
public class BaseApplication extends Application {

    private static BaseApplication application;

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
    }

    /**
     * 获取全局唯一上下文
     *
     * @return BaseApplication
     */
    public static BaseApplication getInstance() {
        return application;
    }
}
